<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>06-字符串</title>
</head>
<body>
    <script>
        /* 
            字符串：引号。
            1.特殊字符，用转义符
            2.length 获取字符段长度
            3. + 可以进行字符串的拼接
            4.字符串拼接其它数据类型后还是字符串
            5.字符串和变量拼接：引引加加
        */
       let address = '河\南郑\n州';
       console.log(address);
       console.log(address.length);

       let subject = 'h5';
       let subject1 = 'js';
       let result = 'h5' + 'js';
       console.log(subject);
       console.log(subject1);
       console.log(subject + subject1);

       let star = '张杰';
       // star = star + 28;
       star = star + true;
       console.log(typeof star);  //string

       let dota = '前端开发';
       console.log('前端开发' + dota + '编码');  // 前端开发前端开发编码
    </script>
</body>
</html>